package Function.Utils;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.lang.reflect.Method;
import java.util.Vector;

import VWorldGameStudio.FCAction;
import utils.FCDataSingles;

/**
 * （暂未实现）
 * 
 * @author jungle
 *
 */
public abstract class Library {

	/**
	 * 暂定用于优化Library初始化方法（暂未实现）
	 * 
	 * @param isGame
	 * @param listPath
	 * @param itemsPath
	 * @param libraryList
	 * @param libraryName
	 * @param readDataMethodName
	 */
	public static void initLibrary(boolean isGame, String listPath, String itemsPath, Vector<Library> libraryList,
			Vector<String> libraryName, String readDataMethodName) {
		try {
			if (!isGame) {
				File listFile = new File(listPath);
				if (!listFile.exists()) {
					listFile.createNewFile();
				}
			}
			BufferedReader reader = new BufferedReader(new FileReader(new File(listPath)));
			String items = reader.readLine();
			while (items != null) {
				//Library library = FCDataSingles.getReader().readActionData(itemsPath + items);
				//libraryList.add(library);
				//libraryName.add(library.getName());
				items = reader.readLine();
			}
			reader.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
